/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dto;

import java.io.Serializable;
import java.util.Date;

/**
 * Exif Data of an Image
 * 
 * @author steffen
 */
public class EXIFData implements Serializable {
    
    private Date dateTimeOriginal;
    private GeoPoint geoPoint;
    
    public EXIFData() {}
    
    public EXIFData(Date dateTimeOriginal) {
        this(dateTimeOriginal, null);
    }
    
    public EXIFData(Date dateTimeOriginal, GeoPoint geoPoint) {
        this.dateTimeOriginal = dateTimeOriginal;
        this.geoPoint = geoPoint;
    }
    
    /**
     * Returns the time the picture was shot
     * 
     */
    public Date getDateTimeOriginal() {
        return dateTimeOriginal;
    }

    public void setDateTimeOriginal(Date dateTimeOriginal) {
        this.dateTimeOriginal = dateTimeOriginal;
    }

    /**
     * Returns the position where the picture was shot
     * 
     * @return 
     */
    public GeoPoint getGeoPoint() {
        return geoPoint;
    }

    public void setGeoPoint(GeoPoint geoPoint) {
        this.geoPoint = geoPoint;
    }

    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        
        builder.append("EXIF Date: ").append(dateTimeOriginal.toString()).append("\n")
                .append("EXIF Geo: ").append(geoPoint.toString());
        
        return builder.toString();
    }
    
    
}
